@import url('css.css');

.wrapper{
  display: inline-flex;
  background: #fff;
  height: 30px;
  width: 800px;
  align-items: center;
  justify-content: space-evenly;

}
.wrapper .option{
  background: #fff;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  padding: 0 10px;
  border: 2px solid lightgrey;
  transition: all 0.3s ease;
}
.wrapper .option .dot{
  height: 20px;
  width: 20px;
  background: #d9d9d9;
  border-radius: 50%;
  position: relative;
}
.wrapper .option .dot::before{
  position: absolute;
  content: "";
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background: #0069d9;
  border-radius: 50%;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.3s ease;
}
input[type="radio"]{
  display: none;
}
#option-1:checked:checked ~ .option-1,
#option-2:checked:checked ~ .option-2,
#option-3:checked:checked ~ .option-3,
#option-4:checked:checked ~ .option-4,
#option-5:checked:checked ~ .option-5{
  border-color: #0069d9;
  background: #0069d9;
}
#option-1:checked:checked ~ .option-1 .dot,
#option-2:checked:checked ~ .option-2 .dot,
#option-3:checked:checked ~ .option-3 .dot,
#option-4:checked:checked ~ .option-4 .dot,
#option-5:checked:checked ~ .option-5 .dot{
  background: #fff;
}
#option-1:checked:checked ~ .option-1 .dot::before,
#option-2:checked:checked ~ .option-2 .dot::before,
#option-3:checked:checked ~ .option-3 .dot::before,
#option-4:checked:checked ~ .option-4 .dot::before,
#option-5:checked:checked ~ .option-5 .dot::before{
  opacity: 1;
  transform: scale(1);
}
.wrapper .option span{
  font-size: 20px;
  color: #808080;
}
#option-1:checked:checked ~ .option-1 span,
#option-2:checked:checked ~ .option-2 span,
#option-3:checked:checked ~ .option-3 span,
#option-4:checked:checked ~ .option-4 span,
#option-5:checked:checked ~ .option-5 span{
  color: #fff;
}

.wrapper2{
  display: inline-flex;
  background: #fff;
  height: 30px;
  width: 800px;
  align-items: center;
  justify-content: space-evenly;

}
.wrapper2 .option{
  background: #fff;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;

}
.wrapper2 .option .dot{
  height: 20px;
  width: 20px;
  background: #d9d9d9;
  border-radius: 50%;
  position: relative;
}
.wrapper2 .option .dot::before{
  position: absolute;
  content: "";
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background: #0069d9;
  border-radius: 50%;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.3s ease;
}
input[type="radio"]{
  display: none;
}
#option2-1:checked:checked ~ .option2-1,
#option2-2:checked:checked ~ .option2-2,
#option2-3:checked:checked ~ .option2-3,
#option2-4:checked:checked ~ .option2-4,
#option2-5:checked:checked ~ .option2-5{
  border-color: #CC0000;
  background: #CC0000;
}
#option2-1:checked:checked ~ .option2-1 .dot,
#option2-2:checked:checked ~ .option2-2 .dot,
#option2-3:checked:checked ~ .option2-3 .dot,
#option2-4:checked:checked ~ .option2-4 .dot,
#option2-5:checked:checked ~ .option2-5 .dot{
  background: #fff;
}
#option2-1:checked:checked ~ .option2-1 .dot::before,
#option2-2:checked:checked ~ .option2-2 .dot::before,
#option2-3:checked:checked ~ .option2-3 .dot::before,
#option2-4:checked:checked ~ .option2-4 .dot::before,
#option2-5:checked:checked ~ .option2-5 .dot::before{
  opacity: 1;
  transform: scale(1);
}
.wrapper2 .option span{
  font-size: 20px;
  color: #808080;
}
#option2-1:checked:checked ~ .option2-1 span,
#option2-2:checked:checked ~ .option2-2 span,
#option2-3:checked:checked ~ .option2-3 span,
#option2-4:checked:checked ~ .option2-4 span,
#option2-5:checked:checked ~ .option2-5 span{
  color: #fff;
}